package com.sofwin;

import javafx.application.Application;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @packageName: com.sofwin
 * @user: andyliu
 * @date: 2021/7/22 17:02
 * @email 115176513@qq.com
 * @description: TODO
 */

public class Consumer01 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        AlipayService service=(AlipayService)context.getBean("alipayService");
        service.pay();
    }
}
